<include file="Public/head"/>
<body class="no-skin">
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
    <div class="main-content">
        <div class="main-content-inner">
            <div class="page-content">
                <!-- /section:settings.box -->
                <div class="row">
                    <div class="space-4"></div>
                     <!--startprint1-->
                     <div class="cf">
                           <h2 class=" text-center">幼儿园进账汇总</h2>
                           <h5>幼儿园名称：{$data[0]['m_name']}</h5>
                   		<h5>时&nbsp;&nbsp;&nbsp;&nbsp;间&nbsp;&nbsp;&nbsp;&nbsp;段：{$dateS}&nbsp;至&nbsp;{$dateE}</h5>
                      </div>
                      
                     <div class="space-4"></div>
                      <table class="table table-striped table-bordered" >
                            <thead>
	                            <tr>
	                                <th class="center">财务分类</th>
	                                <th class="center">总金额</th>
	                            </tr>
                            </thead>
                            <tbody>
                                 <tr>
                                 <?php if(empty($allmoney)){ ?>
                                 	<td class="center" colspan='2' style='color:red;'>改时间段没有入账记录！</td>
                                 <?php }else{ ?>
                                    <td class="center"> {$name_type}财务汇总</td>
 					 				<td class="center">￥{$allmoney}</td>
 					 				<?php } ?>				
                                </tr>
                            </tbody>
                        </table>
                      <div class="space-4"></div>
                     <div>
                     		<h2 class=" text-center"> 幼儿园进账详情 </h2>
                     </div>
                     
                    <div class="space-4"></div>
                       <table class="table table-striped table-bordered">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>用户名称</th>
                                <th>报名人名称</th>
                                <th>报名学校</th>
                                <th>报名班级</th>
                                <th>报名金额</th>
                                <th>是否支付</th>
                                <th>支付类型</th>
                                <th>报名时间</th>
                            </tr>
                            </thead>
                            <tbody>

                            <?php if($data){
                                foreach($data as $k=>$val){ ?>
                                 <tr>

                                     <td><?php echo $k+1?></td>
                                     <td><?php echo $val['u_name']?></td>
                                     <td><?php echo $val['b_name']?></td>
                                     <td><?php echo $val['m_name']?></td>
                                     <td><?php echo $val['c_name']?></td>
                                     <td><?php echo $val['price']?></td>
                                     <td><if condition=" $val['is_pay'] eq 1 ">已支付<else/>未支付</if></td>
                                     <td><if condition=" $val['pay_type'] eq 1 ">线上支付<else/>线下支付</if></td>
                                     <td><?php echo $val['add_time'];?></td>
                                </tr>
                            <?php }
								}else{echo "<tr align='center'><td colspan='9' style='color:red;'>该时间段没有入账记录！</td></tr>";}?>
                            </tbody>
                        </table>
                     <!--endprint1-->
                    <!-- PAGE CONTENT ENDS -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.page-content -->
    </div>
</div><!-- /.main-content -->
<script src="__PUBLIC__/qwadmin/js/jquery-1.9.1.min.js"></script>
<!-- inline scripts related to this page -->
<script type="text/javascript">
$(function(){
	window.print();
	history.back();
})
</script>
</body>
</html>
